Attached patch fixes FP initialization bug with x86-64 xenlinux.=20
With this patch, # of testcase failures with LTP is < 5 (out of 800),
almost same results as the native x86-64 Linux. The other two patches
for LTP are coming soon; with these, all the testcases will pass (except
the ones that fail on the native x86-64 Linux).
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
CD(0); CD(1); CD(2); CD(3); /* no db4 and db5 */; CD(6); CD(7);
#undef CD
-#if 0
fpu_init();
-#endif
#ifdef CONFIG_NUMA
numa_add_cpu(cpu);
#define clts() (HYPERVISOR_fpu_taskswitch(0))
static inline unsigned long read_cr0(void)
{
- BUG();
+ return 0;
}
static inline void write_cr0(unsigned long val)
{
- BUG();
+ /* Ignore, Linux tries to clear TS and EM */
}
static inline unsigned long read_cr3(void)